package com.ordersystem.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : Order
 * @description : [订单表的实体类]
 * @createTime : [2022/3/20 16:48]
 * @updateUser : asus1020
 * @updateTime : [2022/3/20 16:48]
 * @updateRemark : [描述说明本次修改内容]
 */
@Data
public class Order {
    private Integer oid;//主键
    private Integer uid;//下单的用户id
    private String dids;//下单的菜品ids
    private String deskName;//餐桌名称
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date orderTime;//下单时间
    private Double totalMoney;//订单金额
    private boolean isPay;//是否付款
    private boolean isFinish;//是否完成订单
    private String gids;//订单信息id
    private List<Dish> dishList;//订单菜品详情信息
    private User user;//下单用户

}
